import {saveCurrentUser, saveCurrentPath, saveMenuList, saveNavigateTreeData} from './tool'

const mutations = {
  setCurrentUser(state, value) {
    state.currentUser = value
    saveCurrentUser(value)
  },
  setCurrentPath(state, value) {
    state.currentPath = value
    saveCurrentPath(value)
  },
  setMenuList(state, value) {
    state.menuList = value
    saveMenuList(value)
  },
  setNavigateTreeData(state, value) {
    state.navigateTreeData = value
    saveNavigateTreeData(value)
  }
}

export default mutations
